import request from '@/utils/request'
// 请求商品列表
const fetchItems = (params = {}) => {
  return request.get('/itemLists', { params })
}
// 批量添加
const addItems = (params = {}) => {
  return request.post('/addItems', params)
}
// 删除商品
const delItem = (id) => {
  return request.delete('/delItem', { params: { id } })
}
export {
  fetchItems,
  delItem,
  addItems
}
